#!/usr/bin/perl

use strict;
use warnings;

use IO::Handle;

STDOUT->autoflush(1);

my $tmpdir = $ENV{__PERLDB_TEMP_DIR};

sub _do_chdir
{
    chdir($tmpdir);
}

sub _after_chdir
{
    print "_after_chdir\n";
}

sub _finale
{
    my $i = 1;
    while (1)
    {
        print "In _finale No " . ($i++) . "\n";
    }
}

_do_chdir();
_after_chdir();
_finale();
